package client

import (
	"douyin/idl/repository/user"
	"fmt"
	"google.golang.org/grpc"
	"google.golang.org/grpc/credentials/insecure"
)

func NewUserClient() user.UserServiceClient {
	fmt.Println("User微服务客户端创建")
	conn, _ := grpc.Dial("127.0.0.1:8081", grpc.WithTransportCredentials(insecure.NewCredentials()))
	userServiceClient := user.NewUserServiceClient(conn)
	return userServiceClient
}
